package com.serkol.ams.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName settings
 */
@TableName(value ="settings")
@Data
public class Settings {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String title;

    /**
     * 删除状态
     */
    private Integer deleted;

    /**
     * 
     */
    private Date date;

    /**
     * 
     */
    private Long loginBgId;

    /**
     * 
     */
    private Long logoId;

    /**
     * 
     */
    private Long agentType;

    /**
     * 
     */
    private String icp;

    /**
     * 
     */
    private String color;

    /**
     * 
     */
    private String tel;

    /**
     * 
     */
    private String userName;

    /**
     * 
     */
    private String about;

    /**
     * 
     */
    private Long documentsId;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Settings other = (Settings) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getLoginBgId() == null ? other.getLoginBgId() == null : this.getLoginBgId().equals(other.getLoginBgId()))
            && (this.getLogoId() == null ? other.getLogoId() == null : this.getLogoId().equals(other.getLogoId()))
            && (this.getAgentType() == null ? other.getAgentType() == null : this.getAgentType().equals(other.getAgentType()))
            && (this.getIcp() == null ? other.getIcp() == null : this.getIcp().equals(other.getIcp()))
            && (this.getColor() == null ? other.getColor() == null : this.getColor().equals(other.getColor()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getAbout() == null ? other.getAbout() == null : this.getAbout().equals(other.getAbout()))
            && (this.getDocumentsId() == null ? other.getDocumentsId() == null : this.getDocumentsId().equals(other.getDocumentsId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getLoginBgId() == null) ? 0 : getLoginBgId().hashCode());
        result = prime * result + ((getLogoId() == null) ? 0 : getLogoId().hashCode());
        result = prime * result + ((getAgentType() == null) ? 0 : getAgentType().hashCode());
        result = prime * result + ((getIcp() == null) ? 0 : getIcp().hashCode());
        result = prime * result + ((getColor() == null) ? 0 : getColor().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getAbout() == null) ? 0 : getAbout().hashCode());
        result = prime * result + ((getDocumentsId() == null) ? 0 : getDocumentsId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", deleted=").append(deleted);
        sb.append(", date=").append(date);
        sb.append(", loginBgId=").append(loginBgId);
        sb.append(", logoId=").append(logoId);
        sb.append(", agentType=").append(agentType);
        sb.append(", icp=").append(icp);
        sb.append(", color=").append(color);
        sb.append(", tel=").append(tel);
        sb.append(", userName=").append(userName);
        sb.append(", about=").append(about);
        sb.append(", documentsId=").append(documentsId);
        sb.append("]");
        return sb.toString();
    }
}